package com.rich.dmr.model;

import com.rich.dmr.utils.Constant;
import com.rich.dmr.utils.ConvertUtils;

public class Frequency {
    private int channel;
    private int txFrequency;
    private int rxFrequency;

    public Frequency(int channel, int txFrequency, int rxFrequency) {
        this.channel = channel;
        this.txFrequency = txFrequency;
        this.rxFrequency = rxFrequency;
    }

    public int getChannel() {
        return channel;
    }

    public void setChannel(int channel) {
        this.channel = channel;
    }

    public int getTxFrequency() {
        return txFrequency;
    }

    public void setTxFrequency(int txFrequency) {
        this.txFrequency = txFrequency;
    }

    public int getRxFrequency() {
        return rxFrequency;
    }

    public void setRxFrequency(int rxFrequency) {
        this.rxFrequency = rxFrequency;
    }
    public String toString() {
        return Constant.READ_FRE + channel +"/" + ConvertUtils.div(txFrequency, 1000000) + "/" + ConvertUtils.div(rxFrequency, 1000000);
    }
}
